/*
 * @FileName: [DictionaryService.java] 
 * @Package com.bci.pwtz.service 
 * 
 * 
 * Copyright (c) 2011-2015 BCINFO Technology Limited Com.
 * All rights reserved.
 * 
 * This software is the confidential and proprietary 
 * information of BCINFO Technology Limited Company
 * ("Confidential Information"). You shall not disclose 
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement 
 * you entered into with RKY.
 * 
 * $Rev$
 * $LastChangedDate$
 * $LastChangedBy$
 * 
 * @category ALUMNI
 * @version 1.1
 * @author $Author$
 *
 * Change History:[Formatter: author date description] <br/>
 * 1
 * 2
 * 3
*/


package com.bci.pwtz.service;

import java.util.List;

import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dictionary;

/**
 * 一句话描述 <br/>
 * <p>Description:<br/>
 *    <p>TODO 详细描述
 *
 * <p>For Examples <br/>
 * <PRE>
 *      TODO 代码使用示例
 * </PRE>
 * <p>
 */
public interface DictionaryService
{
    /**
     * 新增Dictionary
     * TODO
     * @param Dictionary
     * @return
     * @throws PwtzDatabaseException
     */
     int add(Dictionary dictionary) throws PwtzDatabaseException;
    /**
     * 删除（根据dictionaryId删除）
     * TODO
     * @param dictionaryId
     * @return
     * @throws PwtzDatabaseException
     */
     int delete(Long dictionaryId)throws PwtzDatabaseException , CanNotDeleteException;
    /**
     * 修改Dictionary
     * TODO
     * @param dictionary
     * @return
     * @throws PwtzDatabaseException
     */
     int update(Dictionary dictionary) throws PwtzDatabaseException;
    /**
     * 查找所有Dictionary对象
     * 一句话描述 <br/>
     * <p>Description: TODO(详细描述) 
     * <br/>
     * <p>Author: Administrator<br/>
     * <p>Date: 2014年9月25日-下午2:35:19<br/>
     * <p>
     * @return
     * @throws PwtzDatabaseException   
     *
     */
     
     List<Dictionary> selectDictionary(Long typeId,Long userId)throws PwtzDatabaseException;
    
}
